//
//  EnvironmentManage.h
//  BaseProject
//
//  Created by Macx on 2018/2/23.
//  Copyright © 2018年 Gavin. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef NS_ENUM(NSInteger, EnvironmentType) {
    DevEnvironment = 0,                //开发环境
    TestEnvironment,                   //测试环境
    preReleaseEnvironment,             //预生产
    OnlineEnvironment                  //发布环境
};


@interface EnvironmentManage : NSObject

+(EnvironmentManage *)sharedEnvirManage;

//获取api
- (NSString *)getBaseAPIUrl;

//获取H5-》API
- (NSString *)getWebBaseAPIUrl;

//获取微信公众号API
- (NSString *)getWxBaseAPIUrl;

//获取当前环境
- (NSString *)getCurrentEnvironment;

//获取环境类型
- (EnvironmentType)getCurrentEnvironmentType;

//变更环境
- (void)changeEnvironment:(EnvironmentType)type;

@end
